﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace MetroGA.Core.Hits
{
	internal class SocialHit : Hit
	{
		public string Network { get; set; }
		public string Action { get; set; }
		public string Target { get; set; }

		public override IEnumerable<KeyValuePair<string, string>> ToKeyValuePairs()
		{
			var dic = new Dictionary<string, string>
				{
					{"t", "social"},
					{"sn", Network},
					{"sa", Action},
				};

			if (!String.IsNullOrWhiteSpace(Target))
				dic.Add("st", Target);

			return dic.Concat(base.ToKeyValuePairs());
		}
	}
}